home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / Tools Plus Library 2.1 / Read Me! Key Features < prev    next >
Text File  |  1993-10-24  |  12KB  |  306 lines

  1. Key Tools Plus Features
  2. ~~~~~~~~~~~~~~~~~~~~~~~
  3.  
  4.   The following is a list of key Tools Plus features.  Nearly all of them need only one line of code calling a Tools Plus routine.  Although some of these features may appear to be simple, their functional equivalent, when programmed in ordinary C or Pascal, often require considerable programming effort and dozens (sometimes hundreds) of lines of code.
  5.  
  6.  
  7. Windows
  8. ```````
  9. • All 6 standard window types are supported, with a single command and
  10.   are referenced by a window number instead of a pointer. Pointers can
  11.   be used, if required.
  12.  
  13. • Any window can be “modal” to prevent the use of menus or clicking
  14.   outside the active window.
  15.  
  16. • Windows with title bars are moved automatically when they dragged by
  17.   the user (dragging can be limited to specified boundaries).
  18.  
  19. • Windows with a “size box” are sized automatically when the user drags
  20.   the “size box” (minimum and maximum sizing limits can be specified for
  21.   horizontal and/or vertical sizing).
  22.  
  23. • Windows with an optional “zoom box” in their title bar automatically
  24.   zoom between a standard size/position, and a user-controlled
  25.   size/position.
  26.  
  27. • Closing a window automatically releases the memory occupied by its
  28.   buttons, scroll bars, editing fields, list boxes, and custom controls.
  29.  
  30. Buttons
  31. ```````
  32. • All 3 types of Macintosh buttons (push button, radio button and check
  33.   box) are supported, and are referenced by a button number instead of a
  34.   handle.
  35.  
  36. • Buttons can be enabled or disabled with a simple command.
  37.  
  38. • Check boxes and radio buttons can be checked or unchecked with a
  39.   simple command.
  40.  
  41. • A push button can be designated to be the default button for a window.
  42.   As per Macintosh standards, a black outline is drawn around the
  43.   button, and it is automatically selected whenever the user types
  44.   Return or Enter.
  45.  
  46. • Buttons automatically become disabled when their window is inactive.
  47.   When the window is reactivated, the buttons assume their normal state.
  48.  
  49. • Buttons can be displayed using two different fonts on each window,
  50.   thereby allowing smaller buttons to be created where space is
  51.   restricted.  These variations work independently of their window’s
  52.   current font settings (unlike ordinary Macintosh buttons).
  53.  
  54. • When a radio button is double-clicked, your program can optionally
  55.   interpret it to mean “select this button and click the default push-
  56.   button.”
  57.  
  58. • Any push button can be “flashed” to appear as though it was clicked.
  59.  
  60. Scroll Bars
  61. ```````````
  62. • Scroll bars are created with a single command and are referenced by a
  63.   scroll bar number instead of a handle.
  64.  
  65. • Scroll bars automatically become hidden when their window is inactive.
  66.   When the window is reactivated, the scroll bars assume their normal
  67.   state.
  68.  
  69. • If a window has a right and/or bottom scroll bar, such as the kind
  70.   seen on the edges of word processing documents and spreadsheets, these
  71.   scroll bars are automatically resized and repositioned when a window’s
  72.   size is changed.
  73.  
  74. Editing Fields
  75. ``````````````
  76. • Editing fields are created with a single command and are referenced by
  77.   a field number instead of a handle.  They are also memory efficient to
  78.   allow for numerous fields in low memory situations.
  79.  
  80. • The Edit menu automatically interacts with the active editing field.
  81.   The Undo, Cut, Copy, Paste, and Clear items are automatically
  82.   enabled/disabled appropriately (see Menus).  Selected text is
  83.   automatically copied to and from the clipboard.
  84.  
  85. • Selected characters in a field automatically become deselected when
  86.   the field’s window is inactive.  When the window is reactivated,
  87.   selection is restored to its normal state.
  88.  
  89. • Sophisticated text editing allows a selected range of characters to be
  90.   extended by a single character, or a word at a time.  With Tools Plus,
  91.   editing fields behave like miniature word processors.
  92.  
  93. • Fields can be length-limited to prevent their text from exceeding a
  94.   specified number of characters.
  95.  
  96. • Tab, Return, Enter, Clicking, and Double-Clicking in a field are all
  97.   fully supported, as is the selection of font, font size, and styles.
  98.  
  99. • Editing fields can contain single or multiple lines (as decided upon
  100.   by your application).
  101.  
  102. • Scrolling occurs automatically to ensure that selected characters are
  103.   always in view.  In single-line fields, words will not disappear when
  104.   they exceed the right side of the field -- they will automatically
  105.   scroll into view.
  106.  
  107. • Editing fields can be repositioned on a window to facilitate scrolling
  108.   tables.
  109.  
  110. • Your application can paste text directly into a field under the
  111.   application’s control.
  112.  
  113. • Each editing field can have its own unique font, size, and style.
  114.   These variations work independently of the window's current font
  115.   settings (unlike regular Macintosh fields).
  116.  
  117. List Boxes
  118. ``````````
  119. • Macintosh “list boxes” are supported simply and effectively.
  120.  
  121. • List boxes are created with a single command and are referenced by a
  122.   list number instead of a handle.
  123.  
  124. • Lines in a list box can be added or deleted as required, and are
  125.   referenced by line number.
  126.  
  127. • List boxes are automatically disabled (the lines are deselected and
  128.   the scroll bar is hidden) when their window is inactive, and are
  129.   enabled when the window is activated.
  130.  
  131. • Various methods are available for selecting lines in a list box, such
  132.   as: one line only, multiple lines, select as you drag the mouse, and
  133.   many more.
  134.  
  135. • Your application can determine if a specific line, or any lines are
  136.   selected in a list box.
  137.  
  138. • When you first create a list box, the first selected line will always
  139.   be in view (i.e. not scrolled out of view).
  140.  
  141. • Each list box can have its own unique font, size, and style.  These
  142.   variations work independently of the window's current font settings
  143.   (unlike regular Macintosh list boxes).
  144.  
  145. Menus
  146. `````
  147. • Menus are created by a single command (one for each item) and are
  148.   reference by a menu and item number instead of a handle.
  149.  
  150. • Menus can be added, changed, deleted, renamed, appended,
  151.   enabled/disabled, restyled, prefaced with a symbol or icon, etc.
  152.  
  153. • Command key equivalents, icons, check marks, other special marks, and
  154.   font styling are all supported.
  155.  
  156. • The “Apple” menu is created with a single command that automatically
  157.   gives your application access to desk accessories.  This also includes
  158.   the apple menu’s “About…” item that names your application.
  159.  
  160. • When using the Finder (prior to System 7), menus are automatically
  161.   enabled/disabled appropriately when a desk accessory is active.  Under
  162.   System 7, the menu bar is automatically replaced with desk accessory’s
  163.   menu bar when the DA is active.  These are Macintosh standards that
  164.   should be observed by all applications.
  165.  
  166. • The Edit menu’s Undo, Cut, Copy, Paste, and Clear items are fully
  167.   interactive with editing fields and desk accessories, and are
  168.   automatically enabled/disabled appropriately.
  169.  
  170. • The Edit menu’s Undo item automatically changes to “Undo Cut”, “Undo
  171.   Copy”, “Undo Paste”, and “Undo Typing” as required.  Selecting “Undo…”
  172.   changes the item to “Redo…” and automatically performs the correct
  173.   action.
  174.  
  175. Cursors
  176. ```````
  177. • The shape of the cursor can be changed with a single command.
  178.  
  179. • The cursor changes shape automatically depending on where it is on the
  180.   screen.  For example, the cursor becomes an I-Beam when it enters an
  181.   editing field, and an arrow when it is outside the active window.
  182.  
  183. • A cursor table can be set up to automatically change the cursor’s
  184.   shape depending on its position in a window.
  185.  
  186. • When the wrist watch cursor is displayed, Tools Plus ignores all mouse
  187.   clicks and typing except for Command-. (operator halting a lengthy
  188.   process.)
  189.  
  190. • Optionally, your application can permit the clicking of a push button
  191.   when the wrist watch cursor is displayed.  This is useful if you have
  192.   a Cancel button displayed on a window during a lengthy process.
  193.  
  194. • An animated cursor, like the Finder’s spinning wrist watch, is
  195.   supported.
  196.  
  197. Mouse
  198. `````
  199. • Single, double, and triple clicks, as well and dragging, is
  200.   automatically detected and reported.
  201.  
  202. • A cursor table can be used to detect if the mouse was clicked in
  203.   specific areas (such as a picture or icon).  This feature effectively
  204.   makes any object “click sensitive.”
  205.  
  206. Desk Accessories
  207. ````````````````
  208. • Access to desk accessories is made possible by creating the Apple menu
  209.   with a single command.
  210.  
  211. • The Edit menu’s Undo, Cut, Copy, Paste, and Clear items interact
  212.   automatically with desk accessories.
  213.  
  214. • Text that is cut, copied and pasted between desk accessories and
  215.   editing fields is completely automatic.
  216.  
  217. • Desk accessories are handled automatically by Tools Plus (you don’t
  218.   have to program anything to use them).
  219.  
  220. Dialogs/Alerts
  221. ``````````````
  222. • Alerts and modal dialog boxes are supported by standard Pascal
  223.   statements, however, they can be easily simulated by using Tools Plus
  224.   windows or Tools Plus’s Dynamic Alerts.
  225.  
  226. Dynamic Alerts
  227. ``````````````
  228. • Dynamic alerts are alert boxes that are automatically sized in
  229.   relation to the alert’s contents -- they grow as big as needed to
  230.   always appear aesthetically pleasing.  It’s like having hundreds of
  231.   customized alert boxes available at your disposal.
  232.  
  233. • Dynamic alert boxes are created with a single command, and do not
  234.   require the use of resources.
  235.  
  236. • An icon can be optionally displayed, and the alert can optionally beep
  237.   when displayed.
  238.  
  239. • You can use various combinations of Yes, No, OK, and Cancel buttons,
  240.   or define your own combinations.  Optionally, a default button can be
  241.   specified.
  242.  
  243. • Dynamic alert boxes are always centered perfectly on the main monitor,
  244.   regardless of monitor’s size or the number of monitor used.
  245.  
  246. Custom Controls
  247. ```````````````
  248. • Advanced programmers can develop their own custom controls and still
  249.   be informed of events pertaining to those controls.
  250.  
  251. System Polling
  252. ``````````````
  253. • A single routine keeps all the automatic processes running smoothly,
  254.   and tells your application if something has occurred, such as the user
  255.   selecting a menu or clicking a button.
  256.  
  257. • Events are reported in a simple, concise, and ready to use manner such
  258.   as “operator clicked Button 3 on Window 1” instead of being cryptic
  259.   and requiring decoding of messages.
  260.  
  261. • Many events can be ignored if your application doesn’t care about
  262.   them, such as when the user drags or re-sizes a window.
  263.  
  264. • Events that are not processed by Tools Plus are handed to your
  265.   application, which can either ignore them or process them as required.
  266.   This allows advanced programmers to implement their own special
  267.   features.
  268.  
  269. Extras
  270. ``````
  271. • Zoom lines, such as those displayed by the Finder when a document is
  272.   opened, are available to make objects appear to zoom out from the
  273.   screen or zoom back down again.
  274.  
  275. • A variety of icon types (ICON, icl8, icl4, cicn, and ICN#) can be
  276.   drawn with a single command.  Icons can be displayed as selected/
  277.   unselected and enabled/disabled.  Tools Plus is sensitive to monitor
  278.   settings (number of colors) and displays the best available icon.
  279.  
  280. • The standard Macintosh thermometer can be drawn with a single command.
  281.   Tools Plus is sensitive to monitor settings (number of colors), as
  282.   well as whether you are using System 7 or not, and draws a thermometer
  283.   that is identical to the Finder’s.
  284.  
  285. Monitors
  286. ````````
  287. • Color, gray-scale and monochrome (black and white) monitors are
  288.   supported, as are multiple-monitor setups.
  289.  
  290. • Tools Plus includes routines to your application when drawing by
  291.   detecting [i] the number of available colors, [ii] whether the monitor
  292.   is set to gray-scale, color, or black and white, and [iii] multiple-
  293.   monitor setups.
  294.  
  295. Memory
  296. ``````
  297. • Memory fragmentation due to opening and closing windows is eliminated,
  298.   regardless of the number of windows your application uses, or has open
  299.   at the same time.
  300.  
  301. Systems
  302. ```````
  303. • Tools Plus is compatible with Systems 6 (under Finder and MultiFinder)
  304.   and System 7.  (Note: Registered users will receive a special version
  305.   of Tools Plus that is compatible with System 4.2 or higher).
  306.